﻿#ifndef __PRINTF_H__
#define __PRINTF_H__

#include "CELL.h"
#include <stdarg.h>

// 自定义的数据结构进行标准格式化输出
u_char *snprintf(u_char *buf, size_t max, const char *fmt, ...);
// 和上边的snprintf非常类似
u_char *slprintf(u_char *buf, u_char *last, const char *fmt, ...);
// 对vslprintf的简易包装
u_char *slprintf(u_char *buf, u_char *last, const char *fmt, ...);
// 定制的printf
u_char *vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args);

#endif //__PRINTF_H__
